package moe.bogos.douro.api.common.soul;

import moe.bogos.douro.api.common.soul.element.ElementType;
import net.minecraftforge.registries.ForgeRegistryEntry;

import java.util.HashMap;
import java.util.Map;

public abstract class Soul extends ForgeRegistryEntry<Soul>
{
    protected int atk = 10;//初始攻击力
    protected int def = 10;//初始防御力
    protected int spd = 10;//初始速度
    protected int mind = 10;//初始精神力
    protected int vit = 10;//初始生命力
    protected Map<ElementType, Integer> edef;//初始属性抗性
    
    public Soul()
    {
        edef = new HashMap<>();
        for (ElementType ele : ElementType.values())
        {
            edef.put(ele, 10);
        }
    }
    
    public int getATK()
    {
        return atk;
    }
    
    public int getDEF()
    {
        return def;
    }
    
    public int getSPD()
    {
        return spd;
    }
    
    public int getMind()
    {
        return mind;
    }
    
    public int getVIT()
    {
        return vit;
    }
    
    public int getEDEF(ElementType ele)
    {
        return edef.get(ele);
    }
}
